import { uuid } from '@/utils/tools'
export default {
  loginInfo: req => {
    return {
      code: '1',
      msg: '',
      data: {
        username: '18826448788',
        mobile: '18826448788',
        menus: [
          {
            id: 0,
            label: '数据总览',
            index: 'index/index',
            icon: 'el-icon-home',
            children: []
          },
          {
            id: 1,
            label: '用户列表',
            index: 'user/index',
            icon: 'el-icon-user',
            children: []
          },
          {
            id: 2,
            label: '我的收藏',
            index: 'collection/collection/index',
            icon: 'iconstar__easyico',
            children: [
              {
                id: 201,
                label: '我的收藏',
                index: 'collection/collection/index'
              },
              {
                id: 202,
                label: '电话标签',
                index: 'collection/phone/index'
              },
              {
                id: 203,
                label: '预约标签',
                index: 'collection/reservation/index'
              }
            ]
          },
          {
            id: 3,
            label: '协会联盟',
            index: 'ex',
            icon: 'el-icon-home',
            children: [
              {
                id: 301,
                label: '协会联盟',
                index: 'ex/blank'
              }
            ]
          },
          {
            id: 4,
            label: '精准招商',
            index: 'merchants/merchants/index',
            icon: 'el-icon-home',
            children: [
              {
                id: 401,
                label: '精准招商',
                index: 'merchants/merchants/index',
                children: [
                  {
                    id: 4001,
                    label: '企业详情',
                    index: 'merchants/merchants/detail/:id'
                  }
                ]
              }
            ]
          },
          {
            id: 5,
            label: '企业地图',
            index: 'map/map/index',
            icon: 'el-icon-home',
            children: [
              {
                id: 501,
                label: '企业地图',
                index: 'map/map/index'
              },
              {
                id: 502,
                label: '多维度分析',
                index: 'map/analysis/index'
              },
              {
                id: 503,
                label: '更多明细',
                index: 'map/more/index'
              }
            ]
          },
          {
            id: 6,
            label: '企业画像',
            index: 'portrait/portrait/index',
            icon: 'el-icon-home',
            children: [
              {
                id: 601,
                label: '企业画像',
                index: 'portrait/portrait/index'
              },
              {
                id: 602,
                label: '搜索结果',
                index: 'portrait/portrait/searchList',
                children: [
                  {
                    id: 6002,
                    label: '画像报告',
                    index: 'portrait/portrait/detail'
                  }
                ]
              }
            ]
          },
          {
            id: 7,
            label: '产业链招商',
            index: 'chain/chain/search',
            icon: 'el-icon-home',
            children: [
              {
                id: 701,
                label: '产业链招商-搜索',
                index: 'chain/chain/search',
                children: [
                  {
                    id: 7001,
                    label: '产业链招商-列表',
                    index: 'chain/chain/index',
                    children: [
                      {
                        id: 70001,
                        label: '产业链招商-详情',
                        index: 'chain/chain/detail'
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            id: 8,
            label: '大数据分析',
            index: 'data/industry/index',
            icon: 'el-icon-home',
            children: [
              {
                id: 801,
                label: '产业大数据',
                index: 'data/industry/index'
              },
              {
                id: 802,
                label: '园区大数据',
                index: 'data/park/index'
              },
              {
                id: 803,
                label: '产业大数据全屏',
                index: 'data/industry/screen'
              },
              {
                id: 804,
                label: '园区大数据全屏',
                index: 'data/park/screen'
              }
            ]
          },
          {
            id: 9,
            label: '应用中心',
            index: 'apps/apps/index',
            icon: 'el-icon-home',
            children: [
              {
                id: 901,
                label: '应用中心',
                index: 'apps/apps/index',
                children: [
                  {
                    id: 9001,
                    label: '板块模板',
                    index: 'apps/apps/search'
                  }
                ]
              }
            ]
          },
        ]
      }
    }
  },
  login: req => {
    return {
      code: '1',
      msg: '用户已登录',
      data: {
        token: {
          token: uuid(),
          expired_at: Date.now() / 1000 + 86400
        }
      }
    }
  },
  logout: req => {
    return {
      code: '1',
      msg: '用户已登出',
      data: {}
    }
  }
}
